<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue数据绑定</title>
    <script src="../commonjs/vue.js"></script>
</head>
<body>
    <div id="app">
        单向数据绑定:<input type="text" :value="name"><br/>
        双向数据绑定:<input type="text" v-model="two_way">{{two_way}}
    </div>
    <script type="text/javascript">
        Vue.config.productionTip = false;//关闭开发提示
        const vm = new Vue({
            el:'#app',
            data:{
                name:'姚文昕',
                two_way:'xccit'
            },
            method:{}
        })
    </script>
</body>
</html>